<template>
    <div class="all">
        <div style="font-size: 25px;">收集力扣地址</div>
        <div style="color:red; margin: 10px;font-size: 15px;">只需要填写不同的内容，例：https://leetcode.cn/u/brot/，只填写brot即可</div>
        <a-input placeholder="输入姓名" v-model="a.name" />
        <a-input placeholder="输入力扣地址" v-model="a.leetCodeAddr" />
        <a-button type="primary" @click="go">提交</a-button>
    </div>
</template>

<script>
import {reqGetlikou} from '../api/index'
export default {
    name: '',
    data() {
        return {
            a: {
                name: '',
                leetCodeAddr:''
            },
        }
    },
    methods: {
        go() {
            console.log(this.a);
            reqGetlikou(this.a).then((res) => {
                console.log(res);
            })
        },
    },
};
</script>

<style scoped>
button {
    margin-top: 10px;
}
input{
    margin: 10px;
}
</style>